    {extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form id="J_FormNotice" action="" method="post">
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>工位类型名称：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="station_type_name" id="station_type_name" value="{$station.station_type_name}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>价格：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="price" id="price" value="{$station.price}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    {if $act == 'add'}
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>工位数量：</label>
        <div class="form-controls">
            <input type="text" placeholder="" class="xlarge" name="station_total_num" id="station_total_num">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    {/if}
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>排序号：</label>
        <div class="form-controls">
            <input type="text" placeholder=""  name="sort" id="sort" value="{$station.sort}">
            <span class="fi-help-text hide"></span>
        </div>
    </div>
    {upload_image_widget($pic_data)}

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>工位简介：</label>
        <div class="form-controls">
            <textarea type="text" placeholder="" class="xlarge" name="desc" id="desc" >{$station.station_desc}</textarea>
        </div>
    </div>

    <input type="hidden" name="opt" value="add">
    <div class="formitems inline">
        <label class="fi-name"></label>
        <div class="form-controls">
            <input type="hidden" name="incubator_id" value="{$incubator_id}">
            <input type="hidden" name="station_type_id" value="{$station_type_id}">
            <input type="hidden" name="act" value="{$act}">
            <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>保存</button>
        </div>
    </div>
</form>
{/block}

{block name="js"}
<!-- 编辑器 -->
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=BQLHGlffjbXC30bFDcpIQkHIkaxKBBe6"></script>
<script src="__KD__/kindeditor.js?version={$version}" > </script>
<script src="__ACPJS__/AcpItem/add_item_step3.js?version={$version}"></script>
<script charset="utf-8" src="__KD__/kindeditor.js?version={$version}" > </script>
<script charset="utf-8" src="__KD__/lang/zh_CN.js?version={$version}" > </script>
<script type="text/javascript" src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script type="text/javascript" src="__ACPJS__/AcpNotice/notice_save.js?version={$version}"></script>
<script>

</script>
<!--<script type="text/javascript" src="__JS__/jquery/jquery.min.js"></script>-->
{literal}
<script>
    $('#province').change(function () {
        var province_id = $("#province").find('option:selected').val();
        console.log(province_id);
        $.ajax({
            type:'post',
            url: '/AcpIncubator/getcity',
            data: {province_id: province_id},
            dataType:'json',
            success: function(data){
                //console.log(data);
                var len =data.length;
                var i=0;
                var html='';
                for(i=0;i<len;i++){
                    html+= ' <option value="'+data[i].city_id +'">'+data[i].city_name+'</option>';
                }
                $("#city").html(html);
            }
        });
    });

</script>
{/literal}
<!--<script type="text/javascript" src="__JS__/jquery/jquery.min.js"></script>-->
{/block}

{block name="css"}
<link rel="stylesheet" href="__KD__/themes/default/default.css" />
<link rel="stylesheet" href="/Public/Css/acp/AcpNotice/add_notice.css"  type="text/css"/>
{/block}


